package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车新商品
     * @param shoppingCartDTO
     */
    void shoppingCartAdd(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车信息
     * @return
     */
    List<ShoppingCart> shoppingCartList();

    /**
     * 清空购物车信息
     */
    void cleanCartService();

    /**
     * 删除购物车的某一商品
     * @param shoppingCartDTO
     */
    void cleanOneShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
